From a0c04c2c3d1c640098f572f42d03d46e24012c23 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 3 Apr 2008 11:24:20 +0100 Subject: [PATCH] VT-d: Enable queued invalidation on all vt-d engines before enabling interrupt remapping. Signed-off-by: Allen Kay --- xen/drivers/passthrough/vtd/iommu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xen/drivers/passthrough/vtd/iommu.c b/xen/drivers/passthrough/vtd/iommu.c index 968e25d7f5..41fc90d6ec 100644 --- a/xen/drivers/passthrough/vtd/iommu.c +++ b/xen/drivers/passthrough/vtd/iommu.c @@ -1897,7 +1897,11 @@ static int init_vtd2_hw(void) if ( qinval_setup(iommu) != 0 ) dprintk(XENLOG_ERR VTDPREFIX, "Queued Invalidation hardware not found\n"); + } + for_each_drhd_unit ( drhd ) + { + iommu = drhd->iommu; if ( intremap_setup(iommu) != 0 ) dprintk(XENLOG_ERR VTDPREFIX, "Interrupt Remapping hardware not found\n"); -- 2.30.2